#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QDateTime>
#include <QMutex>
#include <QTextEdit>
#include <QDebug>
#include <QFileDialog>
#include <QFile>
#include <QTextStream>
#include <QProcess>
#include <QCoreApplication>
QT_BEGIN_NAMESPACE
namespace Ui
{
class MainWindow;
}

QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QTextEdit *COM_Text;
    QStringList File_List;
    QProcess shell;
    QString astyle_path;
    QString current_dir_path;

    void readoutput();
    void readerror();
    void show_File_List();
private slots:
    void on_textEdit_textChanged();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

private:
    Ui::MainWindow *ui;
};

extern MainWindow* pw;
#endif // MAINWINDOW_H
